<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>赛尔号图鉴</title>
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        a {
            color: #2c3e50;
            text-decoration: none;
            transition: color 0.3s;
        }

        a:hover {
            color: #3498db;
        }

        /* 导航栏样式 */
        .navbar {
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, #2c3e50, #4a6491);
            border-radius: 8px;
            padding: 0 20px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .nav-title {
            color: white;
            font-size: 22px;
            font-weight: bold;
            margin-right: 30px;
            padding: 15px 0;
        }

        .nav-links {
            display: flex;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: block;
            padding: 15px 20px;
            color: white;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* 下拉菜单样式 */
        .dropdown-content {
            display: none;
            position: absolute;
            left: 0;
            top: 100%;
            min-width: 180px;
            background-color: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            padding: 10px 0;
            border-radius: 4px;
            z-index: 100;
            margin-top: 5px;
        }

        .dropdown-content a {
            display: block;
            padding: 8px 15px;
            color: #2c3e50;
        }

        .dropdown-content a:hover {
            background-color: #f0f4f8;
            color: #3498db;
        }

        .nav-item:hover .dropdown-content {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 内容区域样式 */
        .content {
            background: white;
            border-radius: 8px;
            padding: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        h1 {
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eaecef;
        }

        p {
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
    <!-- 内容区域 -->
    <div class="content">
        <h1>欢迎来到赛尔号图鉴</h1>
    </div>
    
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-title"></div>
        <ul class="nav-links">
            <li class="nav-item">
                <a href="{{ url_for('index') }}" class="nav-link">首页</a>
            </li>
            <li class="nav-item">
                <a href="{{ url_for('role_list') }}" class="nav-link">角色</a>
            </li>
            <li class="nav-item">
                <a href="#" class="nav-link">导航</a>
                <div class="dropdown-content">
                    <a href="{{ url_for('smodel_list', smodel_type_name='Xi_you_du') }}">稀有度</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Tag') }}">标签</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Xing_ge') }}">性格</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Xing_qiu') }}">星球</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Zhen_ying') }}">阵营</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Tu_po_cai_liao') }}">突破材料</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Ji_neng') }}">技能</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Weapon') }}">武器</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Shu_xing') }}">属性</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Ke_yin') }}">刻印</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Cheng_hao') }}">称号</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Hun_yin') }}">魂印</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Pei_dui_tui_jian') }}">配队推荐</a>
                    <a href="{{ url_for('smodel_list', smodel_type_name='Wu_qi_tui_jian') }}">武器推荐</a>
                </div>
            </li>
        </ul>
    </nav>

    

    <script>
        // 添加活动状态到当前页面链接
        document.addEventListener('DOMContentLoaded', function() {
            const currentLocation = location.href;
            const navLinks = document.querySelectorAll('.nav-link');
            
            navLinks.forEach(link => {
                if (link.href === currentLocation) {
                    link.style.backgroundColor = 'rgba(255, 255, 255, 0.2)';
                    link.style.fontWeight = 'bold';
                }
            });
        });
    </script>
</body>
</html>